#{if _mode == 'display'}
	<div id="identity_table_display">
		<div>
			<span class="title_display">Nom :</span>
			<span class="field_display" id="firstname_display">${_collaborator.getValidProfile().getFirstname()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Prénom :</span>
			<span class="field_display" id="name_display">${_collaborator.getValidProfile().getName()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Rue :</span>
			<span class="field_display" id="address_display">${_collaborator.getValidProfile().getAddress()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Code postal :</span>
			<span class="field_display" id="zip_display">${_collaborator.getValidProfile().getZip()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Ville :</span>
			<span class="field_display" id="city_display">${_collaborator.getValidProfile().getCity()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Téléphone :</span>
			<span class="field_display" id="phone_display">${_collaborator.getValidProfile().getPhone()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">E-mail :</span>
			<span class="field_display" id="email_display">${_collaborator.getValidProfile().getEmail()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Nationalité(s) :</span>
			<span class="field_display" id="nationalities_display">${_tools.getNationalitiesAsString(_collaborator.getValidProfile().getNationalities())}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Date de naissance :</span>
			<span class="field_display" id="birthday_display">${_tools.getDateAsString(_collaborator.getValidProfile().getBirthday())}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Lieu de naissance :</span>
			<span class="field_display" id="hometown_display">${_collaborator.getValidProfile().getHometown()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Statut marital :</span>
			<span class="field_display" id="status_display">${_collaborator.getValidProfile().getStatus()}</span>
		<br/>	
		</div>
		<div>
			<span class="title_display">Habilitation :</span>
			<span class="field_display" id="credential_display">${_collaborator.getValidProfile().getCredential()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Fonction chez Eurogiciel :</span>
			<span class="field_display" id="function_display">${_collaborator.getValidProfile().getFunction()}</span>
		<br/>
		</div>
		<div>
			<span class="title_display">Durée d'activité :</span>
			<span class="field_display" id="duration_display">${_collaborator.getValidProfile().getActivityDuration()}</span>
		<br/>
		</div>	
		<div>
			<span class="title_display">Date d'entrée chez Eurogiciel :</span>
			<span class="field_display" id="hiring_display">${_tools.getDateAsString(_collaborator.getValidProfile().getHiring())}</span>
		<br/>
		</div>
		#{if _canEdit == true }
			<div>
				<span class="title_display"><button id="show_identity_panel_button" class="button" 
				onclick="javascript:showForm()">Modifier</button></span> 
				<br/>
			</div>
		#{/if}
		 <br/> <br/> <br/>
	</div>
	
#{/if}



#{if _mode == 'display_pdf'}
	Situation Familiale : ${_collaborator.getValidProfile().getStatus()}
	<br/>
	Nationalité(s) : ${_tools.getNationalitiesAsString(_collaborator.getValidProfile().getNationalities())}
#{/if}




#{if _mode == 'edit' }
	#{form @Collaborator.updateIdentity(_collaborator.getCollaboratorID()), method:'POST', id:'identityEditForm', enctype:'multipart/form-data' }
		<div id="identity_table_edit">
			<div>
				<span class="title_edit">Nom</span>
				<span class="field_edit"><input type="text" id="firstname" name="firstname"
					value="${_collaborator.getValidProfile().getFirstname()}" /></span>
			</div>
			<div>
				<span class="title_edit">Prénom</span>
				<span class="field_edit"><input type="text" id="name" name="name"
					value="${_collaborator.getValidProfile().getName()}" /></span>
			</div>
			<div>
				<span class="title_edit">Rue</span>
				<span class="field_edit"><input type="text" id="address" name="address"
					value="${_collaborator.getValidProfile().getAddress()}" /></span>
			</div>
			<div>
				<span class="title_edit">Code postal</span>
				<span class="field_edit"><input type="text" id="zip" name="zip"
					value="${_collaborator.getValidProfile().getZip()}" /></span>
			</div>
			<div>
				<span class="title_edit">Ville</span>
				<span class="0field_edit"><input type="text" id="city" name="city"
					value="${_collaborator.getValidProfile().getCity()}" /></span>
			</div>
			<div>
				<span class="title_edit">Téléphone</span>
				<span class="field_edit"><input type="text" id="phone" name="phone"
					value="${_collaborator.getValidProfile().getPhone()}" /></span>
			</div>
			<div>
				<span class="title_edit">E-mail</span>
				<span class="field_edit"><input type="text" id="email" name="email"
					value="${_collaborator.getValidProfile().getEmail()}" /></span>
			</div>
			<div>
				<span class="title_edit">Nationalité(s)</span>
				<span class="field_edit"><input type="text" id="nationalities" name="nationality"
					value="${_tools.getNationalitiesAsString(_collaborator.getValidProfile().getNationalities())}" /></span>
			</div>
			<div>
				<span class="title_edit">Date de naissance</span>
				<span class="field_edit"><input type="text" id="birthday" name="birthday"
					value="${_tools.getDateAsString(_collaborator.getValidProfile().getBirthday())}" /></span>
			</div>
			<div>
				<span class="title_edit">Lieu de naissance</span>
				<span><input type="text" id="homeTown" name="homeTown"
					value="${_collaborator.getValidProfile().getHometown()}" /></span>
			</div>
			<div>
				<span class="title_edit">Statut marital</span>
				<span class="field_edit"><input type="text" id="status" name="status"
					value="${_collaborator.getValidProfile().getStatus()}" /></span>
			</div>
			<div>
				<span class="title_edit">Habilitation</span>
				<span class="field_edit"><input type="text" id="credential" name="credential"
					value="${_collaborator.getValidProfile().getCredential()}" /></span>
			</div>

			<div>
				<span class="title_edit">Fonction chez Eurogiciel</span>
				<span class="field_edit"><input type="text" id="function" name="function"
					value="${_collaborator.getValidProfile().getFunction()}" /></span>
			</div>
			<div>
				<span class="title_edit">Durée d'activité</span>
					<span class="field_edit"><input type="text" id="duration" name="activityDuration"
					value="${_collaborator.getValidProfile().getActivityDuration()}" /></span>
			</div>
			<div>
				<span class="title_edit">Date d'entrée chez Eurogiciel</span>
				<span class="field_edit"><input type="text" id="hiring" name="hiring"
					value="${_tools.getDateAsString(_collaborator.getValidProfile().getHiring())}" /></span>
			</div>
			<br/>
			<div>
				<span class="title_edit"><input id="sauvegarder" class="button" type="submit" value="Sauvegarder"/></span>
			</div>
		</div>
	#{/form}
#{/if}
